﻿CREATE PROCEDURE [dbo].[proc_ContratosRefeicoesPrecoUpdate]
(
	@IdRefeicaoContratada bigint,
	@CodTipoServico nvarchar(3),
	@Preco decimal(18,5)
)
AS
BEGIN

	SET NOCOUNT OFF
	DECLARE @Err int

	UPDATE [ContratosRefeicoesPreco]
	SET
		[Preco] = @Preco,
		[DataAlteracao] = GETDATE()
	WHERE
		[IdRefeicaoContratada] = @IdRefeicaoContratada
	AND	[CodTipoServico] = @CodTipoServico


	SET @Err = @@Error


	RETURN @Err
END
